package com.coderman.common.model.system;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "tb_log")
public class Log implements Serializable {

	private static final long serialVersionUID = -4898081346319222850L;

	@Id
	private Long id;

	private String username;

	private Long time;

	private String ip;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;

	private String location;

	private String operation;

	private String method;

	private String params;

}
